if (Hls.isSupported()) {
    var video = document.getElementById('video');
    var hls = new Hls();
    // 指定你的HLS流地址
    var streamUrl = 'http://192.168.6.90:8080/live/bestman.m3u8?auth_key=15823cf2fc7d5072b4f31979fb8858b07f8502e26ff2b68bf4776006c854c3da';
    hls.loadSource(streamUrl);
    hls.attachMedia(video);
    hls.on(Hls.Events.MANIFEST_PARSED, function() {
        video.play();
    });
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
    video.src = 'http://192.168.6.90:8080/live/bestman.m3u8?auth_key=15823cf2fc7d5072b4f31979fb8858b07f8502e26ff2b68bf4776006c854c3da';
    video.addEventListener('canplay', function() {
        video.play();
    });
}
